package 华为.text04_字符串分隔;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int length = line.length();
        int part = 0 ;
        if(length%8==0){
            part=length/8;
        }
        part = length/8 + 1;
        int firstIndex=0;
        int lastIndex=8;
        for (int i = 0; i < part; i++) {
            if (i==part-1){
                lastIndex=length;
                int distance = lastIndex - firstIndex;
                String substring = line.substring(firstIndex, lastIndex);
                StringBuilder stringBuilder = new StringBuilder(substring);
                for (int i1 = 0; i1 < 8-distance; i1++) {
                    stringBuilder.append(0);
                }
                System.out.println(stringBuilder.toString());
                return;
            }

            String substring = line.substring(firstIndex, lastIndex);
            System.out.println(substring);
            firstIndex = firstIndex+8;
            lastIndex=lastIndex+8;
        }
        
    }
}